#include <QLabel>
#include <QVBoxLayout>
#include <QApplication>
#include "Wizard.h"

QWizardPage *createIntroPage()
{
    QWizardPage *page = new QWizardPage;
    page->setTitle("Prepare translated texts");
    QLabel *label = new QLabel("Please put all translated texts into a excel file"
                               " and arrage them as following table, one language"
                               " one column.");
    label->setWordWrap(true);

    QLabel *pic = new QLabel;
    pic->setPixmap(QPixmap("://icons/introduction.png"));

    QVBoxLayout *layout = new QVBoxLayout;
    layout->addWidget(label);
    layout->addWidget(pic);
    page->setLayout(layout);
    return page;
}

QWizardPage *createRegistrationPage()
{
    QWizardPage *page = new QWizardPage;
    return page;
}

QWizardPage *createConclusionPage()
{
    QWizardPage *page = new QWizardPage;
    return page;
}

int tkWizardMain(int argc, char *argv[])
{
    QApplication app(argc, argv);

    QWizard wizard;
    wizard.addPage(createIntroPage());
    wizard.addPage(createRegistrationPage());
    wizard.addPage(createConclusionPage());

    wizard.setWindowTitle("Import xls file");
    wizard.show();

    return app.exec();
}

